package com.wanbing.factory.simplefactory;

import com.wanbing.factory.AvActor;
import com.wanbing.factory.IJob;
import com.wanbing.factory.JavaProgrammer;

public class SimpleFactoryTest {
    public static void main(String[] args) {

        JobSimpleFactory jobSimpleFactory = new JobSimpleFactory();

        IJob java = jobSimpleFactory.create(JavaProgrammer.class);
        java.doWork();

        IJob av = jobSimpleFactory.create(AvActor.class);
        av.doWork();


    }
}
